]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
osdWindow: Disable unredirection while showing the OSD
authorAdel Gadllah <adel.gadllah@gmail.com>
Thu, 30 May 2013 08:43:23 +0000 (10:43 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 7 Jun 2013 19:21:00 +0000 (21:21 +0200)
This allows OSDs to be visible even when displayed on top
of unredirected windows.

https://bugzilla.gnome.org/show_bug.cgi?id=701224

js/ui/osdWindow.js

index 09d03549ba238abb979257ad01703383c705a4da..340702ae87d6d0304cc8104079f96eb239a5a6cd 100644 (file)
@@ -136,6 +136,7 @@ const OsdWindow = new Lang.Class({
             return;
 
         if (!this.actor.visible) {
+            Meta.disable_unredirect_for_screen(global.screen);
             this.actor.show();
             this.actor.opacity = 0;
             this.actor.get_parent().set_child_above_sibling(this.actor, null);
@@ -173,6 +174,7 @@ const OsdWindow = new Lang.Class({
         this.actor.hide();
         this.setLabel(null);
         this.setLevel(null);
+        Meta.enable_unredirect_for_screen(global.screen);
     },
 
     _monitorsChanged: function() {